<?php

class City {
    private $cityId, $countryId, $name;

    function  __construct($cityId = "", $countryId = "", $name = "") {
        $this->cityId = $cityId;
        $this->countryId = $countryId;
        $this->name = $name;
    }

    function __get($name)
    {
        return $this->$name;
    }

    function __set($name,$value)
    {
        $this->$name = $value;
    }
}
?>
